package pers.lance.interceptor.db;

import pers.lance.interceptor.pojo.Item;
import pers.lance.interceptor.pojo.User;

import java.util.ArrayList;
import java.util.List;

/**
 * @ Author     ：LILA3
 * @ Date       ：Created in 3:20 PM 7/25/2018
 */
public class DB {
    public static List<User> usersTable;
    public static List<Item> itemsTable;

    static {
        usersTable = new ArrayList<User>();
        itemsTable = new ArrayList<Item>();

        User user = new User();
        user.setUsername("test");
        user.setPassword("123");

        usersTable.add(user);

        for (int i = 0; i < 10; i++) {
            itemsTable.add(new Item(String.valueOf(i), "item" + i));
        }
    }
}
